var _ = require("lodash");
// _.forIn(object, [iteratee=_.identity])
// 使用 iteratee 遍历对象的自身和继承的可枚举属性
function Foo() {
  this.a = 1;
  this.b = 2;
}

Foo.prototype.c = 3;

_.forIn(new Foo(), function (value, key) {
  console.log(key);
});

// _.forInRight(object, [iteratee=_.identity])
// 从右侧遍历对象
